package fanshe;

import java.lang.reflect.Array;

public class TestArray {

	public static void main(String[] args) {
		Object o = Array.newInstance(double.class, 20);
		double[] ar = (double[]) o;
		Array.setDouble(o, 0, 3.14);
		Array.setDouble(o, 1, 31.4);
		System.out.println(Array.get(o, 1));
		System.out.println(ar[0] + "," + ar[1]);
	}

}
